<!-- BEGIN PAGE HEADER-->
<h3 class="page-title">
    电竞圈举报
    <small></small>
</h3>
<div class="page-bar">
    <ul class="page-breadcrumb">
        <li>
            <i class="fa fa-home"></i>
            <a href="index.html">Home</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">电竞圈管理</a>
            <i class="fa fa-angle-right"></i>
        </li>
        <li>
            <a href="#">电竞圈举报</a>
        </li>
    </ul>
</div>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN EXAMPLE TABLE PORTLET-->
        <div class="portlet box grey-cascade">
            <div class="portlet-title">
                <div class="caption">
                    <i class="fa fa-globe"></i>电竞圈举报列表
                </div>
                <div class="tools">
                    <a href="javascript:;" class="collapse">
                    </a>
                    <a href="javascript:;" class="reload">
                    </a>
                    <a href="javascript:;" class="remove">
                    </a>
                </div>
            </div>
            <div class="portlet-body">
                <div class="table-toolbar">
                    <div class="row">
                        <form role="search" action="#">
                            <div class="col-md-2 col-sm-12">
                                <select class="form-control" name="class">
                                    <option value="">请选择搜索类型...</option>
                                    <option value="1">举报人ID</option>
                                    <option value="2">被举报电竞圈ID</option>
                                </select>
                            </div>
                            <div class="col-md-2 col-sm-12">
                                <input type="text" class="form-control" name="keyword" placeholder="请输入搜索内容" value="">
                            </div>
                            <div class="col-md-8 col-sm-12">
                                <div class="table-group-actions pull-right">
                                    <!--select class="table-group-action-input form-control input-inline input-small input-sm" name="authentication">
                                        <option value="">是否会员...</option>
                                        <option value="1">是</option>
                                        <option value="2">否</option>
                                    </select-->
                                    <select class="table-group-action-input form-control input-inline input-small input-sm" name="status">
                                        <option value="">请选择状态...</option>
                                        <option value="1">未处理</option>
                                        <option value="2">已处理</option>
                                    </select>
                                    <button class="btn btn-sm yellow submit">
                                        <i class="fa fa-search"></i>
                                        搜索
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <table class="table table-striped table-bordered table-hover" id="sample_1">
                    <thead>
                    <tr>
                        <th class="table-checkbox">
                            <input type="checkbox" class="group-checkable" data-set="#sample_1 .checkboxes"/>
                        </th>
                        <th>
                            ID
                        </th>
                        <th>
                            举报人ID
                        </th>
                        <th>
                            举报人昵称
                        </th>
                        <th>
                            举报人电话
                        </th>
                        <th>
                            举报内容
                        </th>
                        <th>
                            被举报电竞圈ID
                        </th>
                        <th>
                            被举报电竞圈名字
                        </th>
                        <th>
                            举报时间
                        </th>
                        <th>
                            状态
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <?php foreach($lists as $value) { ?>
                        <tr class="odd gradeX">
                            <td>
                                <input type="checkbox" class="checkboxes" value="<?php  $value['id']; ?>"/>
                            </td>
                            <td>
                                <?php echo $value['id']; ?>
                            </td>
                            <td>
                                <a class="btn btn-xs" href="" title="点击查看"><?php echo $value['uid']; ?></a>
                            </td>
                            <td>
                                <?php echo $value['member_nick_name']; ?>
                            </td>
                            <th>
                                <?php echo $value['mobile'];?>
                            </th>
                            <td>
                                <?php echo $value['content'];?>
                            </td>
                            <td>
                                <?php echo $value['cid'];?>
                            </td>
                            <td>
                                <?php echo $value['game_circle_name'];?>
                            </td>
                            <td>
                                <?php echo date('Y-m-d H:i:s',$value['add_time']);?>
                            </td>
                            <td>
                                <?php if($value['status'] == 1) {?>
                                <a class="btn btn-xs red" href="/admin/inform/edit?id=<?php echo $value['id'];?>" title="点击查看">未处理</a>
                                <?php } elseif($value['status'] == 2){?>
                                <a class="btn btn-xs green" href="/admin/inform/edit?id=<?php echo $value['id'];?>" title="点击查看">已处理</a>
                                <?php } ?>
                            </td>
                        </tr>
                    <?php } ?>
                    </tbody>
                </table>
                <?php
                $data = [
                    'count'   => $this->count,
                    'page'    => $this->page,
                    'perPage' => $this->perPage,
                ];
                echo $this->render('../../../views/layouts/pager.phtml', $data);
                ?>
            </div>
        </div>
        <!-- END EXAMPLE TABLE PORTLET-->
    </div>
</div>
<!-- END PAGE CONTENT-->